 /**
 * jims
 */
 package com.jims.master.modules.sync.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;
import java.util.List;

 /**
 * Entity
 * @author ct
 * @version 2017-11-16
 */
public class PrescriptionEn extends DataEntity<PrescriptionEn> {
	
	private static final long serialVersionUID = 1L;
	private String billingNum;		// 处方编号
	private String billingRemark;		// 处方备注信息
	private String billingDispensing;		// 处方发药药剂师签名
	private String billingCollate;		// 处方核对药剂师
	private String billingDept;		// 处方开立科室名称
	private Date billingDate;		// 处方开立日期
	private String billingPop;		// 处方开立医师签名
	private String billingCheck;		// 处方审核药剂师签名
	private String billingDeploy;		// 处方调配药剂师签
	private String billingSum;		// 处方药品金额
	private String billingOn;		// 处方药品组号
	private String billingIndate;		// 处方有效天数
	private String visitId;		// 住院ID
	private String clinicId;		// 门诊ID
	 private String implementDept; //执行科室

	 public String getImplementDept() {
		 return implementDept;
	 }

	 public void setImplementDept(String implementDept) {
		 this.implementDept = implementDept;
	 }

	 private List<PrescriptionEnDetails> prescriptionEnDetailsList;

	 public List<PrescriptionEnDetails> getPrescriptionEnDetailsList() {
		 return prescriptionEnDetailsList;
	 }

	 public void setPrescriptionEnDetailsList(List<PrescriptionEnDetails> prescriptionEnDetailsList) {
		 this.prescriptionEnDetailsList = prescriptionEnDetailsList;
	 }

	 public PrescriptionEn() {
		super();
	}

	public PrescriptionEn(String id){
		super(id);
	}

	@Length(min=0, max=30, message="处方编号长度必须介于 0 和 30 之间")
	public String getBillingNum() {
		return billingNum;
	}

	public void setBillingNum(String billingNum) {
		this.billingNum = billingNum;
	}
	
	@Length(min=0, max=100, message="处方备注信息长度必须介于 0 和 100 之间")
	public String getBillingRemark() {
		return billingRemark;
	}

	public void setBillingRemark(String billingRemark) {
		this.billingRemark = billingRemark;
	}
	
	@Length(min=0, max=50, message="处方发药药剂师签名长度必须介于 0 和 50 之间")
	public String getBillingDispensing() {
		return billingDispensing;
	}

	public void setBillingDispensing(String billingDispensing) {
		this.billingDispensing = billingDispensing;
	}
	
	@Length(min=0, max=50, message="处方核对药剂师长度必须介于 0 和 50 之间")
	public String getBillingCollate() {
		return billingCollate;
	}

	public void setBillingCollate(String billingCollate) {
		this.billingCollate = billingCollate;
	}
	
	@Length(min=0, max=50, message="处方开立科室名称长度必须介于 0 和 50 之间")
	public String getBillingDept() {
		return billingDept;
	}

	public void setBillingDept(String billingDept) {
		this.billingDept = billingDept;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBillingDate() {
		return billingDate;
	}

	public void setBillingDate(Date billingDate) {
		this.billingDate = billingDate;
	}
	
	@Length(min=0, max=50, message="处方开立医师签名长度必须介于 0 和 50 之间")
	public String getBillingPop() {
		return billingPop;
	}

	public void setBillingPop(String billingPop) {
		this.billingPop = billingPop;
	}
	
	@Length(min=0, max=50, message="处方审核药剂师签名长度必须介于 0 和 50 之间")
	public String getBillingCheck() {
		return billingCheck;
	}

	public void setBillingCheck(String billingCheck) {
		this.billingCheck = billingCheck;
	}
	
	@Length(min=0, max=50, message="处方调配药剂师签长度必须介于 0 和 50 之间")
	public String getBillingDeploy() {
		return billingDeploy;
	}

	public void setBillingDeploy(String billingDeploy) {
		this.billingDeploy = billingDeploy;
	}
	
	public String getBillingSum() {
		return billingSum;
	}

	public void setBillingSum(String billingSum) {
		this.billingSum = billingSum;
	}
	
	@Length(min=0, max=50, message="处方药品组号长度必须介于 0 和 50 之间")
	public String getBillingOn() {
		return billingOn;
	}

	public void setBillingOn(String billingOn) {
		this.billingOn = billingOn;
	}
	
	@Length(min=0, max=2, message="处方有效天数长度必须介于 0 和 2 之间")
	public String getBillingIndate() {
		return billingIndate;
	}

	public void setBillingIndate(String billingIndate) {
		this.billingIndate = billingIndate;
	}
	
	@Length(min=0, max=64, message="住院ID长度必须介于 0 和 64 之间")
	public String getVisitId() {
		return visitId;
	}

	public void setVisitId(String visitId) {
		this.visitId = visitId;
	}
	
	@Length(min=0, max=64, message="门诊ID长度必须介于 0 和 64 之间")
	public String getClinicId() {
		return clinicId;
	}

	public void setClinicId(String clinicId) {
		this.clinicId = clinicId;
	}
	
}